package com.ramesh.shadi.client;

import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

import com.ramesh.shadi.beans.Person;
import com.ramesh.shadi.beans.SearchCriteria;
import com.ramesh.shadi.service.MatchImpl;
import com.ramesh.shadi.service.MatchImplServiceLocator;

public class AxisClient {

public static void main(String[] args) throws ServiceException, RemoteException {
	MatchImplServiceLocator locator=new MatchImplServiceLocator();
	MatchImpl matchImpl=locator.getMatchImpl();
	SearchCriteria criteria=new SearchCriteria();
	criteria.setAge(26);
	criteria.setColor("red");
	criteria.setSalary(10000);
	
	Person person=matchImpl.getRichMatch(criteria);
	System.out.println("Better match for you is...........");
	System.out.println("Person name:"+person.getName());
	System.out.println("person city"+ person.getCity());
	System.out.println("end");
	System.out.println("start");
	System.out.println("ready");
}
}
